package de.fhkl.strokeserver.user;

import java.util.UUID;

public class User
{
	private UUID mId;
	private String mEmail;
	private String mPassword;
	
	public User(String email, String password)
	{
		this(UUID.randomUUID(), email, password);
	}
	
	public User(UUID id, String email, String password)
	{
		mId = id;
		mEmail = email;
		mPassword = password;
	}

	public UUID getId()
	{
		return mId;
	}

	public void setId(UUID id)
	{
		mId = id;
	}

	public String getEmail()
	{
		return mEmail;
	}

	public void setEmail(String email)
	{
		mEmail = email;
	}

	public String getPassword()
	{
		return mPassword;
	}

	public void setPassword(String password)
	{
		mPassword = password;
	}
	
	public String getType()
	{
		return this.getClass().getSimpleName();
	}
}
